import 'package:flutter_deer/shop/models/agent_user_entity.dart';
import 'package:flutter_deer/generated/json/base/json_convert_content.dart';

AgentUserEntity $AgentUserEntityFromJson(Map<String, dynamic> json) {
  final AgentUserEntity agentUserEntity = AgentUserEntity();
  final String? belowUsername = jsonConvert.convert<String>(json['belowUsername']);
  if (belowUsername != null) {
    agentUserEntity.belowUsername = belowUsername;
  }
  final String? belowNickname = jsonConvert.convert<String>(json['belowNickname']);
  if (belowNickname != null) {
    agentUserEntity.belowNickname = belowNickname;
  }
  final String? belowAvatar = jsonConvert.convert<String>(json['belowAvatar']);
  if (belowAvatar != null) {
    agentUserEntity.belowAvatar = belowAvatar;
  }
  final String? belowAccountId = jsonConvert.convert<String>(json['belowAccountId']);
  if (belowAccountId != null) {
    agentUserEntity.belowAccountId = belowAccountId;
  }
  final String? belowShareCode = jsonConvert.convert<String>(json['belowShareCode']);
  if (belowShareCode != null) {
    agentUserEntity.belowShareCode = belowShareCode;
  }
  final double? winScore = jsonConvert.convert<double>(json['winScore']);
  if (winScore != null) {
    agentUserEntity.winScore = winScore;
  }
  final double? totalDepositScore = jsonConvert.convert<double>(json['totalDepositScore']);
  if (totalDepositScore != null) {
    agentUserEntity.totalDepositScore = totalDepositScore;
  }
  final double? totalTakeOutScore = jsonConvert.convert<double>(json['totalTakeOutScore']);
  if (totalTakeOutScore != null) {
    agentUserEntity.totalTakeOutScore = totalTakeOutScore;
  }
  final String? createTime = jsonConvert.convert<String>(json['createTime']);
  if (createTime != null) {
    agentUserEntity.createTime = createTime;
  }
  return agentUserEntity;
}

Map<String, dynamic> $AgentUserEntityToJson(AgentUserEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['belowUsername'] = entity.belowUsername;
  data['belowNickname'] = entity.belowNickname;
  data['belowAvatar'] = entity.belowAvatar;
  data['belowAccountId'] = entity.belowAccountId;
  data['belowShareCode'] = entity.belowShareCode;
  data['winScore'] = entity.winScore;
  data['totalDepositScore'] = entity.totalDepositScore;
  data['totalTakeOutScore'] = entity.totalTakeOutScore;
  data['createTime'] = entity.createTime;
  return data;
}